package com.github.shiqiyue.app.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.shiqiyue.app.common.entity.BaseEntity;
import lombok.Data;

/**
 * <p>
 * 角色-权限
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-16
 */
@Data
@TableName("sys_role_permission")
public class RolePermission extends BaseEntity {
    /**
     * 数据库字段-ID
     */
    public static final String ID = "id";

    /**
     * 数据库字段-添加时间
     */
    public static final String ADD_DATE = "add_date";

    /**
     * 数据库字段-修改时间啊
     */
    public static final String EDIT_DATE = "edit_date";

    /**
     * 数据库字段-角色id
     */
    public static final String ROLE_ID = "role_id";

    /**
     * 数据库字段-权限id
     */
    public static final String PERMISSION_ID = "permission_id";

    private static final long serialVersionUID = 1L;

    /**
     * 角色id
     */
    private Long roleId;

    /**
     * 权限id
     */
    private Long permissionId;

    /***
     * 权限
     */
    @TableField(exist = false)
    private Permission permission;

}
